package com.imooc.pan.web.schedule;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;


/**
 * 类功能描述: * 定时模块配置类
 *          * 配置定时器执行器
 *
 * @Author: 张广焱
 * @Date: 2024-10-08  20:51:46
 * @Version: 1.0.0
 */
@SpringBootConfiguration
public class ScheduleConfig {

    @Bean
    public ThreadPoolTaskScheduler taskScheduler() {
        ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler();
        return taskScheduler;
    }

}
